@charset "utf-8"; //设置字符编码。
@import "./sass_mixin.scss";
@import "./header.scss";
$widhtpx:1280px; //版心   0.69
$widhtpct:70%; //1280/1840 = 0.7 响应式  

main {
    width: $widhtpx;
    margin: 0 auto;

    #ad {
        width: 100%;
        height: 50px;
        margin-top: 30px;
        overflow: hidden;
        position: relative;

        .swiper_btn {
            color: #fff;
        }
    }

    #needs {
        width: 100%;

        img {
            margin-top: 24px;
        }
    }
    .swiperFather{
        position: relative;
        #banner {
            width: 100%;
            height: 609px;
            position: relative;
            overflow: hidden;
    
           
        }
        >.swiper-button-prev {
            left: -40px !important;
            user-select: none;
            // color: transparent !important;
        }
        >.swiper-button-next {
            user-select: none;
            right: -40px !important;
            // color: transparent !important;
        }
        // .banner-prev{
        //     background: url(../img/left.jpg) no-repeat 0 0 !important;
        // }
        // .banner-next{
        //     background: url(../img/left.jpg) no-repeat 0 0 !important;
        // }
        
    }
    

    #sort {
        width: $widhtpx;
        margin-top: 52px;
        margin-bottom: 60px;
        @include flex-col();

        ul {
            width: 100%;
            @include flex-row();

            li {
                width: 19%;
                height: 20px;
                text-align: center;
                margin-bottom: 25px;
                font-size: 16px;
                font-weight: bold;
                cursor: default;
                border-right: 1px solid #dadada;

                &:last-child {
                    border: none;
                }
            }

            &:last-child {
                li {
                    border: none;

                    a {
                        padding: 5px 0;
                        margin-right: 10px;
                        font-size: 14px;
                        border-bottom: 2px solid #dadada;
                        letter-spacing: 0;

                        &:hover {
                            color: #348692;
                        }

                        &:last-child {
                            margin: 0;
                        }
                    }
                }
            }
        }
    }

    #category {
        h4 {
            font-size: 30px;
            margin: 52px 0 28px 0;
        }

        .shorts,
        .popular,
        .currents {
            ol {
                width: 100%;
                @include flex-row();
                justify-content: space-between;

                li {
                    width: 30%;

                    img {
                        width: 400px;
                        height: 400px;

                    }

                    p:nth-of-type(1) {
                        font-size: 20px;
                        font-weight: 900;
                        line-height: 50px;
                        width: 100%;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        overflow: hidden;
                    }

                    p:nth-of-type(2) {
                        font-size: 20px;
                        font-weight: 900;
                        line-height: 30px;
                        color: red;

                        span {
                            font-size: 12px;
                            color: #000;
                            margin-left: 20px;
                        }
                    }

                    p:nth-of-type(3) {
                        font-size: 14px;
                        color: red;
                    }
                }
            }
        }

        .hot {
            height: 990px;
            position: relative;

            >ul {
                width: 100%;
                @include flex-row();
                border-bottom: 1px solid #dadada;
                margin-bottom: 28px;

                li {
                    flex: 1;
                    line-height: 26px;
                    text-align: center;
                    font-size: 20px;
                    color: #ababab;
                    cursor: pointer;
                    padding: 20px 0;
                    border-bottom: 3px solid transparent;
                }
            }

            .fourItems {
                >.item {
                    position: absolute;
                    left: 0;
                    top: 160px;
                }
            }
        }

        .rank {
            height: 570px;
            position: relative;

            >ul {
                width: 100%;
                @include flex-row();
                border-bottom: 1px solid #dadada;
                margin-bottom: 28px;

                li {
                    text-align: center;
                    flex: 1;
                    line-height: 26px;
                    text-align: center;
                    font-size: 20px;
                    color: #ababab;
                    cursor: pointer;
                    padding: 20px 0;
                    border-bottom: 3px solid transparent;
                }
            }

            .rankItems {
                >.itemR {
                    position: absolute;
                    left: 0;
                    top: 160px;
                }
            }

        }

        .service {
            margin-bottom: 50px;

            .about {
                text-align: center;

                h4 {
                    text-align: left;
                }

                >p {
                    font-size: 16px;
                    height: 24px;
                    color: #000;
                    cursor: pointer;

                    &:first-of-type {
                        font-weight: 600;
                    }

                    &:last-of-type {
                        font-size: 12px;
                        margin-top: 10px;
                        padding-bottom: 30px;
                        border-bottom: 1px solid #ccc;

                        a {
                            text-decoration: underline;
                        }
                    }
                }
            }
        }
    }

    .weather {
        width: $widhtpx;

        .clotheRoom {
            width: 100%;
            height: 150px;
            background: url(../img/footer-banner.gif) no-repeat 0 0;

            >div {
                .wrap {
                    margin: 5px 0 0 5px;
                    width: 50%;
                    @include flex-row();
                    justify-content: flex-start;

                    div {
                        @include flex-row();

                        .iconWeaInfo {
                            font-size: 30px;
                        }

                        p {
                            height: 50px;
                            line-height: 25px;

                            >a {
                                display: none;
                            }
                        }
                    }


                }

                >img {
                    margin-top: 50px;
                    margin-left: 35px;
                }
            }
        }


    }
}

#goTop {
    position: fixed;
    right: 50px;
    bottom: 100px;
    z-index: 999;
    background: #FFF;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, .24);
}

#asideFixed {
    position: fixed;
    left: 50px;
    top: 30%;
    display: none;

    li {
        width: 27px;
        text-align: center;
        padding: 3px;
        border: solid 1px #000;
        border-width: 1px 1px 0 1px;

        &:last-child {
            border-bottom: solid 1px #000;
        }
    }
}

.footer {
    width: $widhtpx;
    margin: 0 auto;
    height: 172px;
}

@import "./footer.scss";